{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <form action="{:url('admin/Role/save')}" method="post">
            <input type="hidden" value="{$data.id}" name="id">
            <div class="form-group">
                <label for="exampleInputText1">角色名</label>
                <input type="text" class="form-control" id="exampleInputEmail1" name="name" required value="{$data.name}">
            </div>
            <div class="form-group">
                <label for="exampleInputText1">说明</label>
                <input type="text" class="form-control" id="exampleInputEmail1" name="remark" value="{$data.remark}">
            </div>
            <div class="form-group">
                <input type="radio" name="status" value="1" {if $data.status==1} checked {/if}>启用
                <input type="radio" name="status" value="2" {if $data.status==2} checked {/if}>禁用
            </div>
            <button type="submit" class="btn btn-default">确认</button>
            <button type="reset" class="btn btn-default">重置</button>
        </form>
    </div>
</div>

{/block}